#ifndef DUMPTHREAD_H
#define DUMPTHREAD_H

#include <QObject>
#include <QThread>
#include <QTimer>
#include "XDPER.H"


class DumpThread : public QThread
{
    Q_OBJECT
public:
    explicit DumpThread(QObject *parent = 0);
    int connectDev();
    void disconnectDev();

    void run();
private:

    DPHANDLE	handle;
    DEVINFO		di;
    UPDINFO		updi;

    QTimer* timer;
signals:
    void sigConnecetDev(void);
    void reflashConnDevList();    //链接设备列表有改变

private slots:
    void connectDevSlot(void);
    void timerOutSlot(void);
};

#endif // DUMPTHREAD_H
